<?php 
if ( isset($this->address))
foreach ( $this->address as $address) {
	
	unset($address->bank_account_nr);
	unset($address->bank_name);
	unset($address->bank_sort_code);
	unset($address->bank_iban);
	unset($address->bank_account_holder);
	unset($address->bank_account_type);
}
$user =& JFactory::getUser();

?>

{
 "error_message" : <?php echo json_encode($this->error->message);?>,
 "message" : <?php echo json_encode($this->message)?>, 

 "username" : <?php echo json_encode($user->username);?>, 
 "address" : <?php echo json_encode($this->address);?>
}
